var Box=Class.create();
Object.extend(Box.prototype,{
			  initialize:function(options){
				  this.id="_Box";
				  this.timeoutId=null;
				  this.centered=false;
				  this.setOptions(options);
			   },
			   setOptions:function(options){
				   this.options={
					   observeElement:null,
					   boxElement:null,
					   closeElement:null,
					   className:"photo_tag mt10 transbox",
					   timeout:0,
					   timeoutHandler:null,
					   beforeShowHandler:null,
					   alignment:1,
					   width:200
				    };
					Object.extend(Object.extend(this,this.options),options);
					this.id=this.boxElement+this.id;
					this.timeout=this.timeout*1000;
					this.observeElement=$(this.observeElement);
					if(this.observeElement!=null){
						Element.observe(this.observeElement,"click",this.toggle.bind(this));
					}
					this.closeElement=$(this.closeElement);
					if(this.closeElement!=null){
						Element.observe(this.closeElement,"click",this.hide.bind(this));
					}
				},
				toggle:function(){
					if(!Element.visible(this.boxElement)){
						if(this.beforeShowHandler!=null){
							if(this.beforeShowHandler()){
								this.show();
							}
						}else{
							this.show();
						}
					}else{
						this.hide();
					}
					this._handleTimeout();
				},
				close:function(){
					this.hide();
				},
				show:function(){
					if(this.alignment==0&&!this.centered){
						Element.center($(this.boxElement));
					}
					Element.show(this.boxElement);
					this._handleTimeout();
				},
				hide:function(){
					if(this.timeoutHandler){
						this.timeoutHandler(this);
					}
					if($(this.boxElement)){
						Element.hide(this.boxElement);
					}
				},
				_handleTimeout:function(){
					if(Element.visible(this.boxElement)&&this.timeout>0){
						clearTimeout(this.timeoutId);
						this.timeoutId=setTimeout(this.close.bind(this),this.timeout);
					}
				},
				dispose:function(){
					if(this.timeoutId){clearTimeout(this.timeoutId);}
this.close();}});Box.MessageBox=Class.create();Box.MessageBox.prototype=Object.extend(new Box(),{initialize:function(options){this.setOptions(options);this.msg=new StringBuilder();},add:function(message){this.msg.append(message);},clear:function(){this.msg.clear();},show:function(){this.showMsg("m_msgContent");},showMsg:function(id){$(id).innerHTML=this.msg.toString("<br/>");this.clear();Element.show(this.boxElement);$(this.boxElement).scrollTo();$(this.boxElement).focus();this._handleTimeout();}});var Tab=Class.create();Object.extend(Tab.prototype,{initialize:function(options){this.setOptions(options);this.regionElement=$(this.regionElement);this.tabItems=$(this.regionElement.getElementsByTagName(this.itemElementTag));this.tabContentItems=this.contentRegionElement;this.onClickHandler=this.onClick.bindAsEventListener(this);this._observe();},setOptions:function(options){this.options={regionElement:"",contentRegionElement:"",itemElementTag:"li",itemContentElementTag:"div",activeClassName:"on",inactiveClassName:""};Object.extend(Object.extend(this,this.options),options);},onClick:function(evt){var clickElement=Event.findElement(evt,this.itemElementTag);var tabItems=this.tabItems,tabItem=null,tabContentItems=this.tabContentItems,tabContentItem=null;for(var i=0,count=tabItems.length;i<count;i++){tabItem=tabItems[i];tabContentItem=tabContentItems[i];if(tabItem.id==clickElement.id){if(!tabContentItem.visible()){tabItem.className=this.activeClassName;tabContentItem.show();}}
else{if(tabContentItem.visible()){tabItem.className=this.inactiveClassName;tabContentItem.hide();}}}},_observe:function(){Event.observe(this.regionElement,'click',this.onClickHandler);},_stopObserving:function(){Event.stopObserving(this.regionElement,'click',this.onClickHandler);}});var Tooltip=Class.create();Object.extend(Tooltip.prototype,{Top:0,Down:1,Left:2,Right:3,initialize:function(options){this.defaultStyle=true;this.setOptions(options);this.container=new Tooltip.Container();this.container.init(this.element,this);this.onMouseOverHandler=this.onMouseOver.bindAsEventListener(this);this.onMouseMoveHandler=this.onMouseMove.bindAsEventListener(this);this.onClickHandler=this.onClick.bindAsEventListener(this);this.onClickWindowHandler=this.onClickWindow.bindAsEventListener(this);this._observe();},setOptions:function(options){this.options={element:null,text:'',width:0,left:0,height:20,observeMouse:true,className:"m_tip",backgroundColor:"",hideSelect:true,zIndex:20,positionType:0,afterShow:null};Object.extend(Object.extend(this,this.options),options);this.defaultStyle=this.className=="m_tip"?true:false;this.element=$(this.element);},onClick:function(evt){if(this.container.isShowing()){this.hide(evt);}
else{this.show();}},onClickWindow:function(evt){var sourceElement=Event.element(evt);if(sourceElement!=$(this.element)&&!this.container.focus(evt)){Event.stopObserving(document.body,'click',this.onClickWindowHandler);this.hide();}},onMouseOver:function(evt){Event.stop(evt);this.show();},onMouseMove:function(evt){var sourceElement=Event.element(evt);if(sourceElement!=$(this.element)&&!this.container.focus(evt)){this.hide(evt);}},show:function(){if(this.afterShow){this.afterShow(this);}
Event.observe(document.body,'click',this.onClickWindowHandler);Event.observe(document.body,"mousemove",this.onMouseMoveHandler);this.container.show(this);},hide:function(){Event.stopObserving(document.body,'click',this.onClickWindowHandler);Event.stopObserving(document.body,"mousemove",this.onMouseMoveHandler);this.container.hide();},close:function(){this.hide();if(this.element){this._stopObserving();}},pause:function(){this._stopObserving();},active:function(){this._observe();},_observe:function(){if(this.observeMouse&&this.element){Event.observe(this.element,'mouseover',this.onMouseOverHandler);}
else{Event.observe(this.element,'click',this.onClickHandler);}},_stopObserving:function(){if(this.observeMouse&&this.element){Event.stopObserving(this.element,'mouseover',this.onMouseOverHandler);}
else{Event.stopObserving(this.element,'click',this.onClickHandler);}}});Tooltip.Container=Class.create();Tooltip.Container.prototype={correctValue:5,initialize:function(){this.id="_TooltipContainer";this.left=0;this.top=0;this.width=0;this.height=0;this.tip=null;this.iframeId="_TooltipContainerIframe";},init:function(tooltipId,tip){this.id=tooltipId+this.id;this.tip=tip;this.iframeId=tooltipId+this.iframeId;},isShowing:function(){if(!$(this.id)){return false;}
return Element.visible(this.id);},show:function(tip){if(!$(this.id)){var e=document.createElement('div');e.id=this.id;e.className=tip.className;e.style.display='none';e.style.position='absolute';e.style.zIndex=tip.zIndex;if(tip.width>0){e.style.width=tip.width;}
if(!tip.defaultStyle){e.style.background=tip.backgroundColor;}
e.innerHTML=tip.defaultStyle?"<p>"+tip.text+"</p>":tip.text;if(IE){var iframe=document.createElement("iframe");iframe.id=this.iframeId;iframe.style.display='none';iframe.style.position='absolute';iframe.frameborder=0;iframe.scrolling="no";document.body.appendChild(iframe);}
document.body.appendChild(e);}
tip=this.tip||tip;var element=$(tip.element);Position.prepare();var correctValue=this.correctValue;var bodySize=Element.getDimensions(document.body);var bodyWidth=bodySize.width,bodyHeight=bodySize.height;var elementPos=Position.cumulativeOffset(element);var elementSize=element.getDimensions();var elementX=elementPos[0],elementY=elementPos[1],elementWidth=elementSize.width,elementHeight=elementSize.height;var tooltipSize=Element.getDimensions(this.id);var tooltipX=0,tooltipY=0,tooltipWidth=tooltipSize.width,tooltipHeight=tooltipSize.height;switch(tip.positionType){case tip.Top:tooltipX=elementX;tooltipY=elementY-tooltipHeight-correctValue;if(tooltipY<0){tooltipY=0;}
break;case tip.Down:tooltipX=elementX;tooltipY=elementY+elementHeight+correctValue;if(tooltipY>bodyHeight){tooltipY=bodyHeight-tooltipHeight;}
break;case tip.Left:tooltipX=elementX-tooltipWidth-correctValue;if(tooltipX<0){tooltipX=0;}
tooltipY=elementY;break;case tip.Right:tooltipX=elementX+elementWidth+correctValue;if(tooltipX>bodyWidth){tooltipX=bodyWidth-tooltipWidth;}
tooltipY=elementY;break;}
this.elementX=elementX;this.elementY=elementY;this.elementWidth=elementWidth;this.elementHeight=elementHeight;this.tooltipX=tooltipX;this.tooltipY=tooltipY;this.tooltipWidth=tooltipWidth;this.tooltipHeight=tooltipHeight;Element.setStyle(this.id,{"left":tooltipX+"px","top":tooltipY+"px"});Element.show(this.id);var iframe=$(this.iframeId);if(iframe){Position.clone(this.id,this.iframeId);if(tip.defaultStyle){var height=parseInt(iframe.style.height)-5;iframe.style.height=height+"px";}
Element.show(this.iframeId);}},close:function(){var element=$(this.id);if(element){Element.update(element,'');Element.hide(element);document.body.removeChild(element);var iframe=$(this.iframeId);if(iframe){Element.hide(iframe);document.body.removeChild(iframe);}}},hide:function(evt){if(typeof(evt)=="undefined"){this.close();}else{var x=Event.pointerX(evt);var y=Event.pointerY(evt);if(!this._withIn(x,y))
{this.close();}}},focus:function(evt){var x=Event.pointerX(evt);var y=Event.pointerY(evt);return this._withIn(x,y);},onMouseOver:function(){this.show(this);},onMouseOut:function(){this.hide(arguments[0]);},_withIn:function(x,y){var tip=this.tip;switch(tip.positionType){case tip.Top:if((x<this.elementX)||(x>(this.elementX+Math.max(this.elementWidth,this.tooltipWidth)))||(y<this.tooltipY)||(y>(this.elementY+this.elementHeight)))
{return false;}
break;case tip.Down:if((x<this.elementX)||(x>(this.elementX+Math.max(this.elementWidth,this.tooltipWidth)))||(y<this.elementY)||(y>(this.tooltipY+this.tooltipHeight)))
{return false;}
break;case tip.Left:if((x<this.tooltipX)||(x>(this.elementX+this.elementWidth))||(y<this.elementY)||(y>Math.max((this.tooltipY+this.tooltipHeight),(this.elementY+this.elementHeight))))
{return false;}
break;case tip.Right:if((x<this.elementX)||(x>(this.tooltipX+this.tooltipWidth))||(y<this.elementY)||(y>Math.max((this.tooltipY+this.tooltipHeight),(this.elementY+this.elementHeight))))
{return false;}
break;}
return true;}}
function PopupWindow(options){
	if(typeof(PopupWindow._initialized)=="undefined"){
		PopupWindow.currentLayer=1;
		PopupWindow.prototype._init=function(options){
			for(var property in options){
				this[property]=options[property];
			}
			if(!this.windowId)
				this.windowId="Iori";
			if(!this.container)
				this.container=document.body;
			if(!this.mode)
				this.mode=0;
			if(this.mode==2&&(typeof(this.paramString)=="undefined")){
				this.paramString="";
			}
			if(!this.area)
				this.area=0;
			if(typeof(this.windowCSS)=="undefined")
				this.windowCSS=(this.area==0?"w_278 p_alert":"sys_tip w340");
			if(typeof(this.barCSS)=="undefined")
				this.barCSS=(this.area==0?"alpha30black3":"tr");
			if(typeof(this.showCarpet)=="undefined")
				this.showCarpet=true;
			if(!this.showPosition)
				this.showPosition=0;
			if(!this.width)
				this.width=0;
			if(!this.height)
				this.height=0;
			if(typeof(this.top)=="undefined")
				this.top=-1;
			if(typeof(this.left)=="undefined")
				this.left=-1;
			if(typeof(this.mobile)=="undefined")
				this.mobile=true;
			if(this.mode==3){
				this.showPosition=0;
				if(typeof(this.zIndex)=="undefined")
					this.zIndex=10;
				if(typeof(this.boxType)=="undefined")
					this.boxType=1;
				if(typeof(this.okText)=="undefined")
					this.okText="确定";
				if((this.boxType==2)&&(typeof(this.cancelText)=="undefined"))
					this.cancelText="取消";
			}
			if(!this.windowColor)
				this.windowColor="";
				if(typeof(this.autogeny)=="undefined"){
					this.autogeny=true;
				}
				if(typeof(this.suicide)=="undefined"){
						this.suicide=true;
				}
				this.timeoutId=null;
				this.alive=false;
			};
			PopupWindow.prototype._render=function(){
				if(this.showCarpet){
					if(typeof(PopupWindow["carpet"+PopupWindow.currentLayer.toString()])=="undefined"){
						this.carpet=new Carpet({carpetId:this.windowId+"-Carpet",
											   zIndex:(this.zIndex-1)||0,
											   autogeny:this.autogeny,
											   suicide:false});
						PopupWindow["carpet"+PopupWindow.currentLayer.toString()]=this.carpet;
					}else{
						this.carpet=PopupWindow["carpet"+PopupWindow.currentLayer.toString()];
						this.carpet.setZindex(this.zIndex-1);
					}
				}
				this._createWindow();
				if(this.mode>0){
					this._createBar();
					this._createContent();
				}
				this.alive=true;
			};
			PopupWindow.prototype._createWindow=function()
{if(this.mode==0)
{if(!this.mainDiv)
{throw new Error("Mode0 must have a \"mainDiv\" argument !");}
else
{if(this.mainDiv.parentNode)
this.mainDiv.parentNode.removeChild(this.mainDiv);this.window=this.mainDiv;}}
else
{this.window=document.createElement("DIV");}
this.window.id=this.windowId;if(typeof(this.zIndex)!="undefined")
{this.window.style.position="absolute";this.window.style.zIndex=this.zIndex;}
if(this.width>0)
this.window.style.width=this.width+"px";if(this.height>0)
this.window.style.height=this.height+"px";if(this.area==0)
{this.window.style.background=(this.windowColor.length>0?"#258":"#258")+" url(/images/popup_bg.jpg) repeat- scroll center";}
else{
	if(this.windowColor.length>0)
		this.window.style.background=this.windowColor+" url(/images/popup_bg.jpg) repeat-x scroll center top";
	}
	this.window.className=this.windowCSS;
	if(this.area==0)
		this.window.className+=" popupwindow";
	else
		this.window.className+=" popupwindow2";
	this.window.style.display="none";
	this.container.appendChild(this.window);
	this.window.hide=function(){
		thisObject.hide();
	};
};
PopupWindow.prototype._createBar=function(){
	this.bar=document.createElement("DIV");
	this.bar.id=this.windowId+"-Bar";
	this.bar.className=this.barCSS;
	if(this.mobile){
		this.bar.style.cursor="move";
		this._onDraggingHandler=this._onDragging.bindAsEventListener(this);
		this._onDragEndHandler=this._onDragEnd.bindAsEventListener(this);
		Event.observe(this.bar,"mousedown",this._onDragStart.bindAsEventListener(this));
	}
	this.closeIMG=document.createElement("IMG");
	this.closeIMG.src="/images/close.gif";
	this.closeIMG.alt="关闭";
	this.closeIMG.title="关闭";
	Event.observe(this.closeIMG,"click",this.hide.bindAsEventListener(this));
	var a=document.createElement("A");
	a.appendChild(this.closeIMG);
	this.bar.appendChild(a);
	this.window.appendChild(this.bar);
};
PopupWindow.prototype._onDragStart=function(evt){
	this.lastMouseX=evt.clientX;
	this.lastMouseY=evt.clientY;
	Event.observe(document.body,"mousemove",this._onDraggingHandler);
	Event.observe(document.body,"mouseup",this._onDragEndHandler);
	return false;
};
PopupWindow.prototype._onDragging=function(evt){
	this.window.style.left=(parseInt(this.window.style.left)+evt.clientX-this.lastMouseX)+"px";
	this.window.style.top=(parseInt(this.window.style.top)+evt.clientY-this.lastMouseY)+"px";
	this.lastMouseX=evt.clientX;
	this.lastMouseY=evt.clientY;
	return false;
};
PopupWindow.prototype._onDragEnd=function(){
	Event.stopObserving(document.body,"mousemove",this._onDraggingHandler);
	Event.stopObserving(document.body,"mouseup",this._onDragEndHandler);};
	PopupWindow.prototype._createContent=function(){
		switch(this.mode){
			case 1:
				if(!this.paramDiv){
					throw new Error("Mode1 must have a \"paramDiv\" argument !");
				}else{
					if(this.paramDiv.parentNode)
						this.paramDiv.parentNode.removeChild(this.paramDiv);
					this.content=this.paramDiv;
				}
				break;
			case 2:
				if(typeof(this.paramString)=="undefined"){
					throw new Error("Mode2 must have a \"paramString\" argument !");
				}else{
					this.content=document.createElement("DIV");
					this.content.id=this.windowId+"-Content";
					this.content.innerHTML=this.paramString;
				}
				break;
			case 3:
				if(typeof(this.tipString)=="undefined"){
					throw new Error("Mode3 must have a \"tipString\" argument !");
				}else{
					this.content=document.createElement("DIV");
					this.content.id=this.windowId+"-Content";
					var p=document.createElement("P");
					p.id=this.windowId+"-Tip";
					this.tip=p;
					p.className="bold";
					p.innerHTML=this.tipString;
					this.content.appendChild(p);
					if(typeof(this.descriptionString)!="undefined"){
						p=document.createElement("DIV");
						p.id=this.windowId+"-Description";
						this.description=p;
						p.innerHTML=this.descriptionString;
						this.content.appendChild(p);
					}
					if(this.area==0){
						if(this.boxType>0){
							p=document.createElement("P");
							var a=document.createElement("A");
							a.className="mbtn fl mr10";
							var span=document.createElement("SPAN");
							span.className="before";
							span.innerText="#";
							a.appendChild(span);
							span=document.createElement("SPAN");
							span.id=this.windowId+"-OK";
							span.className="center";
							span.innerHTML=this.okText;
							this.okButton=span;
							a.appendChild(span);
							Event.observe(span,"click",this.hide.bindAsEventListener(this));
							span=document.createElement("SPAN");
							span.className="after";
							span.innerText="#";
							a.appendChild(span);
							p.appendChild(a);
							if(this.boxType==2){
								a=document.createElement("A");
								a.className="mbtn fl";
								span=document.createElement("SPAN");
								span.className="before";
								span.innerText="#";
								a.appendChild(span);
								span=document.createElement("SPAN");
								span.id=this.WindowId+"-Cancel";
								span.className="center";
								span.innerHTML=this.cancelText;
								this.cancelButton=span;
								a.appendChild(span);
								Event.observe(span,"click",this.hide.bindAsEventListener(this));
								span=document.createElement("SPAN");
								span.className="after";
								span.innerText="#";
								a.appendChild(span);
								p.appendChild(a);
							}
							this.content.appendChild(p);
						}
						var clear=document.createElement("DIV");
						clear.className="clear";
						this.content.appendChild(clear);
					}else{
						if(this.boxType>0){
							var d=document.createElement("DIV");
							d.className="mt20";
							this.okButton=document.createElement("INPUT");
							this.okButton.id=this.windowId+"-OK";
							this.okButton.type="button";
							this.okButton.value=this.okText;
							this.okButton.className="btn03";
							d.appendChild(this.okButton);
							if(this.okLink)
								this.okButton.onclick=function(okLink){
									window.location.href=okLink;
								}.bind(this,this.okLink);
							else
								Event.observe(this.okButton,"click",this.hide.bindAsEventListener(this));
							if(this.boxType==2){
								this.cancelButton=document.createElement("INPUT");
								this.cancelButton.id=this.windowId+"-Cancel";
								this.cancelButton.type="button";
								this.cancelButton.value=this.cancelText;
								this.cancelButton.className="btn02";
								this.cancelButton.onmouseover=function(){
									this.className="btn03";
								};
								this.cancelButton.onmouseout=function(){
									this.className="btn02";};
									if(this.cancelLink)
										this.cancelButton.onclick=function(cancelLink){
											window.location.href=cancelLink;
										}.bind(this,this.cancelLink);
									else
										Event.observe(this.cancelButton,"click",this.hide.bindAsEventListener(this));
									d.appendChild(this.cancelButton);
								}
								this.content.appendChild(d);
							}
						}
					}
					break;
				}
				this.window.appendChild(this.content);
			}
		;PopupWindow.prototype.show=function()
{if(this.showCarpet)
{this.carpet.show();PopupWindow.currentLayer++;}
this.window.style.display="block";switch(this.showPosition)
{case 0:Event.observe(window,"resize",this._onWindowResizeHandler);this.setCenter();break;case 1:var evt=this.evtCaller?this.evtCaller:GetEvent();this.window.style.left=evt.clientX+"px";this.window.style.top=evt.clientY+"px";break;case 2:if(this.left>-1)
this.window.style.left=this.left+"px";if(this.top>-1)
this.window.style.top=this.top+"px";break;}
Event.observe(document.body,"keydown",this._onBodyKeyDownHandler);this.window.focus();};PopupWindow.prototype.hide=function()
{if(this.beforeCloseCallback){this.beforeCloseCallback();}
Event.stopObserving(document.body,"keydown",this._onBodyKeyDownHandler);if(this.showCarpet)
{this.carpet.hide();PopupWindow.currentLayer--;}
if(this.showPosition==0)
Event.stopObserving(window,"resize",this._onWindowResizeHandler);this.window.style.display="none";if(this.suicide)
{this.container.removeChild(this.window);this.alive=false;}
if(typeof(this.iframe)!="undefined")
{this.iframe.style.display="none";}};PopupWindow.prototype.setCenter=function()
{var windowWidth;var xOffset;var windowHeight;var yOffset;if(window.innerHeight)
{windowWidth=window.innerWidth;xOffset=window.pageXOffset;windowHeight=window.innerHeight;yOffset=window.pageYOffset;}
else
{windowWidth=document.documentElement.offsetWidth;xOffset=document.documentElement.scrollLeft;windowHeight=document.documentElement.offsetHeight;yOffset=document.documentElement.scrollTop;}
this.window.style.left=(xOffset+(windowWidth-this.window.offsetWidth)/2)+"px";this.window.style.top=(yOffset+(windowHeight-this.window.offsetHeight)/2)+"px";};PopupWindow.prototype._onKeyDown=function(evt)
{if(evt.keyCode==27)
this.hide();};PopupWindow.prototype.appendHandler=function(button,handler)
{if(this.mode==3&&this.boxType>0)
{if(button=="ok")
Event.observe(this.okButton,"click",handler);if(button=="cancel"&&this.boxType==2)
Event.observe(this.cancelButton,"click",handler);}};PopupWindow.prototype.removeHandler=function(button,handler)
{if(this.mode==3&&this.boxType>0)
{if(button=="ok")
Event.stopObserving(this.okButton,"click",handler);if(button=="cancel"&&this.boxType==2)
Event.stopObserving(this.cancelButton,"click",handler);}};PopupWindow.prototype.setTip=function(message)
{if(this.mode==3)
{this.tip.innerHTML=message;}};PopupWindow.prototype.setDescription=function(message)
{if(this.mode==3)
{this.description.innerHTML=message;}};PopupWindow.prototype.setContent=function(message)
{if(this.mode>0)
{this.content.innerHTML=message;}};PopupWindow.prototype.setWindow=function(message)
{this.window.innerHTML=message;};PopupWindow.prototype.setTimeoutHide=function(timeout)
{clearTimeout(this.timeoutId);this.timeoutId=setTimeout(this.hide.bind(this),timeout);};PopupWindow.prototype.appendCloseIMGHandler=function(handler)
{Event.observe(this.closeIMG,"click",handler);};PopupWindow._initialized=true;}
this._onWindowResizeHandler=this.setCenter.bindAsEventListener(this);this._onBodyKeyDownHandler=this._onKeyDown.bindAsEventListener(this);this._init(options);this._render();if(this.autogeny)
this.show();var thisObject=this;if(this.autogeny)
this.window.focus();}
function Carpet(options)
{if(typeof(Carpet._initialized)=="undefined")
{Carpet.prototype._init=function(options)
{for(var property in options)
{this[property]=options[property];}
if(typeof(this.autogeny)=="undefined")
{this.autogeny=true;}
if(typeof(this.suicide)=="undefined")
{this.suicide=true;}};Carpet.prototype._render=function()
{this.carpet=document.createElement("DIV");this.carpet.id=this.carpetId;var styles=this.carpet.style;styles.zIndex=this.zIndex;styles.position="absolute";styles.margin="0px";styles.padding="0px";styles.top=(this.top||0)+"px";styles.left=(this.left||0)+"px";styles.width=(this.width||((document.body.clientWidth&&(document.body.clientWidth>screen.width))?document.body.clientWidth:screen.width))+"px";styles.height=(this.height||((document.body.clientHeight&&(document.body.clientHeight>screen.height))?document.body.clientHeight:screen.height))+"px";styles.background="#FFFFFF";styles.filter="alpha(opacity=80)";styles.opacity=0.8;styles.zoom=1;styles.display="none";document.body.appendChild(this.carpet);};Carpet.prototype.getCarpet=function()
{return this.carpet;};Carpet.prototype.show=function()
{var selects=document.getElementsByTagName("SELECT");var isPop;for(var i=0;i<selects.length;i++)
{isPop=selects[i].ispop||selects[i].getAttribute("ispop");if(!isPop)
{selects[i].style.visibility="hidden";}}
var flashObjects=$$("embed");flashObjects.each(function(flashObject)
{flashObject.hide();});this.carpet.style.display="block";};Carpet.prototype.hide=function()
{var selects=document.getElementsByTagName("SELECT");var isPop;for(var i=0;i<selects.length;i++)
{isPop=selects[i].ispop||selects[i].getAttribute("ispop");if(!isPop)
{selects[i].style.visibility="visible";}}
var flashObjects=$$("embed");flashObjects.each(function(flashObject)
{flashObject.show();});this.carpet.style.display="none";if(this.suicide)
document.body.removeChild(this.carpet);};Carpet.prototype.setZindex=function(zIndex)
{this.carpet.style.zIndex=zIndex;};Carpet._initialized=true;}
this._init(options);this._render();}
var errorMessageBoxDisplayArea=null;function setErrorMessage(msg)
{if(errorMessageBoxDisplayArea==null)
createBoxOnLoad();errorMessageBoxDisplayArea.setWindow("<a href=\"#\" title=\"关闭\"><img src=\"/images/close_g.gif\" alt=\"关闭\" onclick=\"javascript:errorMessageBoxDisplayArea.hide();\" /></a><span class=\"bold\">"+msg+"</span>");errorMessageBoxDisplayArea.show();errorMessageBoxDisplayArea.setTimeoutHide(5000);}
function createBoxOnLoad()
{var errorMsg=document.createElement("DIV");errorMsg.style.width=390+"px";errorMsg.innerHTML="<a href=\"#\" title=\"关闭\"><img src=\"/images/close_g.gif\" alt=\"关闭\" onclick=\"javascript:errorMessageBoxDisplayArea.hide();\" /></a><span class=\"bold\"></span>";errorMessageBoxDisplayArea=new PopupWindow({windowId:"errorWindow",container:document.getElementById("errorContainer"),mainDiv:errorMsg,showCarpet:false,windowColor:"",windowCSS:"greenbox ml40",autogeny:false,suicide:false,area:1,showPosition:3});}